package com.ruoyi.student.vo;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.system.domain.SysPost;
import lombok.Data;

@Data
public class UserInfoVO  {
    private long uid;
    private String nickname;
    private int age;
    private String userName;
//    private String school; //学校
//    private String college;//院校
//    private String classs;//班级

    private Long deptId;
    private String deptName;
    private String ancestors; //单位的祖级列表


    private Long postId;

    private String postName;

    /** 用户头像 */
    private String avatar;


    public void setDept(SysDept dept){
        if(dept != null){
            deptId = dept.getDeptId();
            deptName = dept.getDeptName();
            ancestors = dept.getAncestors();
        }
    }

    public void setPost(SysPost post) {
        if (post != null) {
            postId = post.getPostId();
            postName = post.getPostName();
        }
    }
}
